package com.cmo.common.utils;

import java.util.HashMap;
import java.util.Map;

import com.cmo.common.model.Triage;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;

public class TriageTypeController extends Controller {
	Triage triage=new Triage();
	public void queryTriageType(){
		Map<String,Object> map=new HashMap<String, Object>();
		
		String login_id=getSessionAttr("login_id").toString();
		//分诊台分诊模式 triage_type 1按医生 2按叫号器
		//根据医生工号查询分诊台分诊模式
		Record rt= triage.findtypelogin_id(login_id);
		if(null==rt){
			map.put("return_code", "fail");
			map.put("return_msg", "查询分诊台分诊模式失败");
			renderJson(map);
			return;
		}
		renderJson(map);
	}
}
